<?php
require_once('configure.php');
$data_id = isset($_GET['_value']) ? (int) $_GET['_value'] : 0 ;
$query ="SELECT * FROM gol_grade WHERE golongan_jabatan_id =". $data_id ." GROUP BY grade_id";
$datas = array();
$res = my_query($query);
$datas[] = array(0 =>'');
while( $re =my_fetch_array($res )){
	$datas[] = array($re['grade_id'] => $re['grade_id']);
}
if($data_id  == 0) 
	$datas[] = array( 0 => 'Silahkan pilih Golongan Jabatan');
	echo json_encode( $datas );
?>